<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>弹性布局-align-content</title>
    <style>
        .container{
            width: 900px;
            height: 700px;
            background: pink;
            border: 1px solid #000;
            margin: 0 auto;
            /* 弹性盒 */
            display: flex;

            /* 设置交叉轴对齐方式 */
            /* align-items: flex-end; */

            flex-wrap: wrap-reverse;
            /* 多条轴(多行)，更改交叉轴对齐方式 */
            align-content: flex-end;
            /* align-content: flex-start; */
            /* align-content: center; */

        }
        .box{
            width:150px;
            height: 150px;
            font-size: 40px;
            text-align: center;
            background: green;
            color: #FFF;
            border: 5px solid gold;
        }
        .box1{
            width: 200px;
            height: 100px;
        }
        .box2{
            width: 300px;
            height: 250px;
        }
        .box3{
            width: 100px;
            height: 300px;
        }
        .box4{
            width: 250px;
            height: 200px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="box box1">1</div>
        <div class="box box2">2</div>
        <div class="box box3">3</div>
        <div class="box box4">4</div>
        <div class="box box1">1</div>
        <div class="box box2">2</div>
        <div class="box box3">3</div>
        <div class="box box4">4</div>
    </div>
</body>

</html>